---
layout: "default"
title: "withUnsafePointers"
description: "Swift documentation for 'withUnsafePointers': Like withUnsafePointer, but passes pointers to arg0 and arg1."
keywords: "withUnsafePointers,func,swift,documentation"
root: "/v2.2"
---

<div class="declaration" id="func-withunsafepointers-a0-a1-result-inout_-a0-inout_-a1_-unsafepointer-a0-unsafepointer-a1-throws-result">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withunsafepointers-a0-a1-result-inout_-a0-inout_-a1_-unsafepointer-a0-unsafepointer-a1-throws-result">func withUnsafePointers&lt;A0, A1, Result&gt;(<wbr>inout:<wbr> A0, inout _:<wbr> A1,  _: (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;) throws -&gt; Result)</a>
        
<div class="comment collapse" id="comment-func-withunsafepointers-a0-a1-result-inout_-a0-inout_-a1_-unsafepointer-a0-unsafepointer-a1-throws-result"><div class="p">
    <p>Like <code>withUnsafePointer</code>, but passes pointers to <code>arg0</code> and <code>arg1</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withUnsafePointers&lt;A0, A1, Result&gt;(inout arg0: A0, inout _ arg1: A1, @noescape _ body: (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;) throws -&gt; Result) rethrows -&gt; Result</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-withunsafepointers-a0-a1-a2-result-inout_-a0-inout_-a1-inout_-a2_-unsafepointer-a0-unsafepointer-a1-unsafepointer-a2-throws-result">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-withunsafepointers-a0-a1-a2-result-inout_-a0-inout_-a1-inout_-a2_-unsafepointer-a0-unsafepointer-a1-unsafepointer-a2-throws-result">func withUnsafePointers&lt;A0, A1, A2, Result&gt;(<wbr>inout:<wbr> A0, inout _:<wbr> A1, inout _:<wbr> A2,  _: (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;, UnsafePointer&lt;A2&gt;) throws -&gt; Result)</a>
        
<div class="comment collapse" id="comment-func-withunsafepointers-a0-a1-a2-result-inout_-a0-inout_-a1-inout_-a2_-unsafepointer-a0-unsafepointer-a1-unsafepointer-a2-throws-result"><div class="p">
    <p>Like <code>withUnsafePointer</code>, but passes pointers to <code>arg0</code>, <code>arg1</code>,
and <code>arg2</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func withUnsafePointers&lt;A0, A1, A2, Result&gt;(inout arg0: A0, inout _ arg1: A1, inout _ arg2: A2, @noescape _ body: (UnsafePointer&lt;A0&gt;, UnsafePointer&lt;A1&gt;, UnsafePointer&lt;A2&gt;) throws -&gt; Result) rethrows -&gt; Result</code>
    
    
</div></div>
</div>
